﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DBLOG.KmlWrapper
{
    /// <summary>
    /// Contains all the placemarks of the KML
    /// </summary>
    public class KmlDocument : List<KmlPlacemark>
    {
        /// <summary>
        /// Outputs the KML in string format
        /// </summary>
        /// <returns>string</returns>
        public override string ToString()
        {
            KmlGenerator kmlGenerator = new KmlGenerator(this);
            kmlGenerator.GenerateKml();
            return kmlGenerator.ToString();
        }
    }
}
